home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 4784 < prev    next >
Encoding:
Internet Message Format  |  1996-08-06  |  2.2 KB

  1. Path: in2.uu.net!van-bc!uniserve!usenet
  2. From: nowher@anyplace.com (Chris)
  3. Newsgroups: comp.lang.c++
  4. Subject: Re: Help!! I'm a stuck newbie - input problem
  5. Date: 1 Feb 1996 03:15:31 GMT
  6. Organization: UNIServe Online
  7. Distribution: world
  8. Message-ID: <4epb8j$4bq@atlas.uniserve.com>
  9. References: <4eh3vl$g8i@atlas.uniserve.com> <4eipbe$jnd@nic.cc.ruu.nl> <4ek25k$qta@atlas.uniserve.com> <4elkqv$3f2q@yuma.ACNS.ColoState.EDU>
  10. NNTP-Posting-Host: van0111.tvs.net
  11. Mime-Version: 1.0
  12. X-Newsreader: WinVN 0.99.2
  13.  
  14. I am working with a PC system and Borland C++ 3.0 for Windoze.  
  15. Unfortunately, I don't seem to have the <constrea.h> header you speak of.
  16. (If you have could you e-mail it to me??) 
  17.  
  18. Thanks for the assignment hints, I can now use PartNum[].
  19.  
  20.  
  21.  
  22. [snip]
  23. >> My exact problem is that I don't wan't the cursor to over-run 
  24. >> the width of the field:
  25. >
  26. >> Part Number:(            )
  27. >>      Length:(    )
  28. >>       Width:(    )
  29. >>     .
  30. >>     .
  31. >>     .
  32. >
  33. >
  34. >        Ah... "This different question, grasshopper." The problem is
  35. >then, "How do I get control of the cursor?"
  36. >
  37. >        Two answers, one of them platform-dependent. If you're working
  38. >with Borland on a PC, check out their "constrea.h" library - it's got
  39. >exactly what you're looking for. If you're not on a PC, there may be a
  40. >library you can use for screen control (Xwindows or something)?
  41. >
  42. >        Otherwise, you may have to write your own input
  43. >routine. Depending on what you do, this may or may not be platform
  44. >specific.
  45. >
  46. >> The bracket on the right should be the limit of the input.  I would 
  47. like 
  48. >> to beep the user when/if the user reaches the right side of the field.
  49. >> I have tried the getch() function in conjunction with wherex(), but 
  50. this 
  51. >> failed.
  52.  
  53. [snip]
  54.  
  55. >Dave Steffen                      No, his mind is not for rent
  56. >Dept. of Physics                  To any God or Government
  57. >Colorado State University         Always hopeful, yet discontent
  58. >steffend@lamar.colostate edu      He knows changes aren't permanent-
  59. >                                      But change is...
  60. >"Speak softly...                    
  61. >... and carry a black belt!"              -Neal Peart / RUSH
  62. >-----------------------------------------------------------------------
  63.  
  64.